local extension = Package:new("moepack_cardmagic", Package.CardPack)
extension.extensionName = "moepack"

Fk:loadTranslationTable{
  ["moepack_cardmagic"] = "萌包卡牌-魔法",
}

fk.CharmDamage = "charm_damage"
Fk:addDamageNature(fk.CharmDamage, "charm_damage", true)

local charm = fk.CreateCard{
  name = "charm",
  type = Card.TypeBasic,
  skill = "charm_skill",
  is_damage_card = true,
}
-- 将牌的牌面信息加入卡包
for suit = 1, 4 do
  for number = 1, 13 do
    extension:addCardSpec("charm", suit, number)
  end
end
Fk:loadTranslationTable{
  ["charm"] = "法",
	[":charm"] = "基本牌<br /><b>时机</b>：出牌阶段（每回合限一次）<br /><b>目标：</b>一名角色<br /><b>效果：</b>目标角色需打出一张【法】，否则你对其造成1点法术伤害（无视护甲，可被传导）。",
}


local wish_fulfill = fk.CreateCard{
  name = "wish_fulfill",
  type = Card.TypeTrick,
  skill = "wish_fulfill_skill",
}
extension:addCardSpec("wish_fulfill", Card.Diamond, 12)
extension:addCardSpec("wish_fulfill", Card.Heart, 13)
Fk:loadTranslationTable{
  ["wish_fulfill"] = "心想事成",
  [":wish_fulfill"] = "锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：你<br /><b>效果</b>：目标角色选择一种类型，从随机三种此类型的牌名中选一张获得。",
}

local counter = fk.CreateCard{
  name = "counter",
  type = Card.TypeTrick,
  sub_type = Card.SubtypeDelayedTrick,
  skill = "counter_skill",
}
extension:addCardSpec("counter", Card.Club, 1)
Fk:loadTranslationTable{
  ["counter"] = "反制",
  [":counter"] = "延时锦囊牌<br /><b>时机</b>：出牌阶段<br /><b>目标</b>：你<br /><b>效果</b>：记录一种基本或锦囊牌名，并将此牌置于目标角色判定区内。当有其他角色使用记录的牌名时，你可以将此牌置入弃牌堆，令使用的牌失效。判定阶段，将此牌置入弃牌堆。",
}


local moon_stick = fk.CreateCard{
  name = "moon_stick",
  type = Card.TypeEquip,
  equip_skill = "#moon_stick_skill",
  attack_range = 2,
  sub_type = Card.SubtypeWeapon,
}
extension:addCardSpec("moon_stick", Card.Spade, 7)
Fk:loadTranslationTable{
  ["moon_stick"] = "魔月杖",
  [":moon_stick"] = "装备牌·武器<br /><b>攻击范围</b>：２<br /><b>武器技能</b>：锁定技，每当你使用【杀】时，获得一张与之点数和花色均相同的【法】。",
}




-- 将牌的特征信息加入本体
extension:loadCardSkels {
  charm,
  wish_fulfill,
  counter,
  moon_stick,
}

return extension
